﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<hercules.Models.Pessoa>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<h2>Index</h2>

<p>
    <%: Html.ActionLink("Create New", "Create") %>
</p>
<table id="ver-zebra">
    <colgroup>
        <col class="vzebra-odd" />
        <col class="vzebra-even" />
        <col class="vzebra-odd" />
        <col class="vzebra-even" />
        <col class="vzebra-odd" />
        <col class="vzebra-even" />
        <col class="vzebra-odd" />
        <col class="vzebra-even" />
        <col class="vzebra-odd" />
        <col class="vzebra-even" />
        <col class="vzebra-odd" />
        <col class="vzebra-even" />
        <col class="vzebra-odd" />
        <col class="vzebra-even" />
        <col class="vzebra-odd" />
        <col class="vzebra-even" />
    </colgroup>
    <thead>
    <tr>
        <th scope="col" id="vzebra-comedy">
            Pessoa2
        </th>
        <th scope="col" id="vzebra-action">
            cpf
        </th>
        <th scope="col" id="vzebra-comedy">
            cnpj
        </th>
        <th scope="col" id="vzebra-action">
            nome
        </th>
        <th scope="col" id="vzebra-comedy">
            endereco
        </th>
        <th scope="col" id="vzebra-action">
            rg
        </th>
        <th scope="col" id="vzebra-comedy">
            cep
        </th>
        <th scope="col" id="vzebra-action">
            estado
        </th>
        <th scope="col" id="vzebra-comedy">
            cidade
        </th>
        <th scope="col" id="vzebra-action">
            bairro
        </th>
        <th scope="col" id="vzebra-comedy">
            email
        </th>
        <th scope="col" id="vzebra-action">
            insc_estadual
        </th>
        <th scope="col" id="vzebra-comedy">
            banco
        </th>
        <th scope="col" id="vzebra-action">
            conta
        </th>
        <th scope="col" id="vzebra-comedy">
            agencia
        </th>
        <th scope="col" id="vzebra-action"></th>
    </tr>
    </thead>
    <tbody>
<% foreach (var item in Model) { %>
    <tr>
        <td>
            <%: Html.DisplayFor(modelItem => item.Pessoa2.cpf) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.cpf) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.cnpj) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.nome) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.endereco) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.rg) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.cep) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.estado) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.cidade) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.bairro) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.email) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.insc_estadual) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.banco) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.conta) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.agencia) %>
        </td>
        <td>
            <%: Html.ActionLink("Edit", "Edit", new { id=item.idPessoa }) %> |
            <%: Html.ActionLink("Details", "Details", new { id=item.idPessoa }) %> |
            <%: Html.ActionLink("Delete", "Delete", new { id=item.idPessoa }) %>
        </td>
    </tr>
<% } %>
</tbody>
</table>

</asp:Content>
